package com.qf.mrmd.result;

public enum ResponseCode {
    SUCCESS("200", "操作成功"),
    SQL_EXCEPTION("100","SQL异常"),
    SYSTEM_EXCEPTION("102","系统异常"),
    PARAM_EXCEPTION("103","参数错误"),
    USERINFO_EXCEPTION("104","用户名密码错误"),
    FAILED("999999","操作失败"),
    AUTH_EXCEPTION("105","用户信息过期"),
    ParamError("000001", "参数错误！"),
    FileEmpty("000400","上传文件为空"),
    FileType("000403","文件类型错误"),
    LimitPictureSize("000401","图片大小必须小于2M"),
    LimitPictureType("000402","图片格式必须为'jpg'、'png'、'jpge'、'gif'、'bmp'");


    private String ecode;
    private String info;

    ResponseCode(String ecode, String info) {
        this.ecode = ecode;
        this.info = info;
    }

    public String getEcode() {
        return ecode;
    }

    public void setEcode(String ecode) {
        this.ecode = ecode;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
}
